package s2elinshu;

public class J12Circle {

	public static void main(String[] args) {
		Circle a = new Circle();
		a.r = 5;
		System.out.println(a.r);
		System.out.println(a.getArea());
		System.out.println(a.getPerim());
		
	} //main닫음
} // J12Circle class 닫음

class Circle{
	double r;
	double area;
	double perim;
	final double PI = 3.14;		
	
	public double getArea(){
		return(r* r* PI);
	}
	public double getPerim(){
		return(r * 2 * PI);
	}
}// Circle class닫음